<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Mall/Small_order_distributors.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Small_order_distributors.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '佣金明细',
                    name: 'Small_order_distributors',
                    url: "/Small_order_distributors/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {goods_name:'',name:'',commissionStatus:'',ordertime:'',order_number:''},
                searchFormOptions: [[  { "title": "分销订单号", "field": "order_number", "type": "like", "colSize": 4,},
                // ,{ "title": "商品名称", "field": "goods_name", "type": "like", "colSize": 4, },
                 { "title": "下单用户", "field": "name", "type": "like", "colSize": 4, },
                 { "title": "分佣时间", "field": "commissionTime", "type": "datetime"  ,"colSize": 4,},
                { "dataKey": "commission_settlement", "data": [], "title": "佣金结算状态", "field": "commissionStatus", "type": "select" , "colSize": 4,},
               ]],
                columns: [
                    //  {field:'order_id',title:'订单id',type:'string',width:90,align:'left'},
                       {field:'order_number',title:'订单号',type:'string',width:150,align:'left'},
                       {field:'name',title:'下单用户',type:'string',width:80,align:'left'},
                       {field:'commissionPrice',title:'分销金额',type:'decimal',width:80,align:'left',sortable:true},
                       {field:'commissionStatus',title:'入账状态',type:'string',width:80,align:'left',bind: { key: 'commission_settlement', data: [] },sortable:true},
                       {field:'entryType',title:'入账方式',type:'string',width:80,align:'left',bind: { key: 'entryType', data: [] },sortable:true},
                       {field:'commissionTime',title:'分佣时间',type:'datetime',width:150,align:'left',sortable:true},
                       {field:'distributorCode',title:'分销商名称',type:'string',width:90,align:'left',bind: { key: 'distributorList', data: [] },},
                    //    commissionStatus
                    //    {field:'subservantPone',title:'分佣用户手机',type:'string',width:90,align:'left'},
                    //    {field:'commissionStatus',title:'佣金结算状态',type:'int',width:120,align:'left'},
                    //    {field:'createDate',title:'创建时间',type:'datetime',width:90,align:'left',sortable:true},
                    //    {field:'createID',title:'创建人id',type:'int',width:90,hidden:true,align:'left'},
                    //    {field:'creator',title:'创建人名称',type:'string',width:180,align:'left'},
                    //    {field:'distributorCode',title:'分销商编码',type:'string',width:220,align:'left'},
                    //    {field:'extensionPhone',title:'推广分销用户手机',type:'string',width:180,align:'left'},
                    //    {field:'goods_id',title:'商品id',type:'string',width:90,align:'left'},
                    //    {field:'goods_name',title:'商品名称',type:'string',width:220,align:'left'},
                    //    {field:'id',title:'id',type:'string',width:90,hidden:true,readonly:true,require:true,align:'left'},
                    //    {field:'modifier',title:'修改人名称',type:'string',width:180,align:'left'},
                    //    {field:'modifierID',title:'修改人id',type:'int',width:90,align:'left'},
                    //    {field:'modifyDate',title:'修改时间',type:'datetime',width:90,align:'left',sortable:true},
                    //    {field:'phone',title:'电话',type:'string',width:90,align:'left'},
                    //    {field:'pic_path',title:'商品图片地址',type:'string',width:220,align:'left'},
                    //    {field:'price',title:'商品单价',type:'decimal',width:90,align:'left'},
                    //    {field:'settlement_price',title:'结算单价',type:'decimal',width:90,align:'left'},
                    //    {field:'settlement_total_fee',title:'结算总价',type:'decimal',width:90,align:'left'},
                    //    {field:'total_fee',title:'商品总金额',type:'decimal',width:90,align:'left'}
                       ],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
